import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by lkkjzx on 2017/4/25.
 */
public class Test {

    public  static  void main(String[] args){

        Pattern pattern =Pattern.compile("party/\\w{1,10}\\.html");
        String line="http://www.hdb.com/party/rbllb.html?hdb_pos=find";
        Matcher matcher = pattern.matcher(line);

        if (matcher.find()){
            String s=matcher.group();
            System.out.println( s.substring(6,s.length()-5));
        }
    }
}
